package com.hdc.springtask.demo;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class CountAttendTask {
	
    @Scheduled(cron = "* * * * * ?")
    public void countAttend(){
        System.out.println(new Date()+"It is time to send mail to leader .... ");
    }	
	
}